package org.lex.jdbc.url.persist.xml;

import java.io.IOException;
import java.util.Iterator;

import org.dom4j.Document;
import org.dom4j.Element;
import org.lex.jdbc.url.CommonObject;

public interface XmlEntityDao<T extends CommonObject> {

	void marshal(T driver, Element entityElement);

	T unmarshal(Element entityElement) throws IOException;

	Iterator<Element> getEntityIterator(Document doc);

	Element createNewEntityElement(Document doc);
}
